/*
 * @Author: xws 1043495328@qq.com
 * @Date: 2023-07-13 14:25:52
 * @LastEditors: xws 1043495328@qq.com
 * @LastEditTime: 2023-07-20 15:39:30
 * @FilePath: \vue3-admin-template\src\utils\token.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//封装本地存储存储数据与读取数据方法
//本地存储数据
export const SET_TOKEN = (token: string) => {
  localStorage.setItem('TOKEN', token)
}
//本地存储获取数据
export const GET_TOKEN = () => {
  return localStorage.getItem('TOKEN')
}
//本地存储删除数据方法
export const REMOVE_TOKEN = () => {
  localStorage.removeItem('TOKEN');
}